'''
Author: cw
Date: 2025-07-11
Description: ...
'''
import json
from fastapi import Request

from main import app
from modules import task_schedule_wpr


@app.post('/event')
async def event(req: Request):
    """event"""
    body = await req.json()
    return await task_schedule_wpr.task_cb(json.loads(body))
